package middleware

import (
	"github.com/gin-gonic/gin"
)

func InitMiddleware(r *gin.Engine) {
	// r.Use(cors.New(cors.Config{
	// 	AllowOrigins: []string{"*"},
	// 	AllowHeaders: []string{"*"},
	// 	AllowMethods: []string{"*"},
	// }))

	r.Use(
		OpenTracing(),
		HttpLog,
		Recover(),
	)
}
